/**
 * dashboard
 * @author Brant Liu
 * @email lbf1988@qq.com
 * @date 2019/9/27
 * @version 1.0.0
 */
layui.extend({
    total_sales: 'dashboard/total_sales',
    total_views: 'dashboard/total_views',
    total_users: 'dashboard/total_users'
}).define(['jquery', 'total_sales', 'total_views', 'total_users', 'chart'], function(exports){
    'use strict';
    var $ = layui.jquery, chart = layui.chart;

    chart.init($('#total_sales')[0]).setOption(layui.total_sales);

    chart.init($('#total_views')[0]).setOption(layui.total_views);

    chart.init($('#total_users')[0]).setOption(layui.total_users);

    exports('dashboard', {});
});